package com.ktjy.entity;

/**
 * @return 13141
 * 2025/6/20
 * 11:50
 */
public class Employee {
    private String name; // 姓名
    private Integer age; // 年龄
    private String job; // 岗位

    // 属性封装
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getJob() {
        return job;
    }

    public void setJob(String job) {
        this.job = job;
    }

    public void introduce() {
        System.out.println("大家好，我是" + getJob() + "岗位的" + getName() + "，今年" + getAge() + "岁");
    }
}
